﻿<%@ Page Title="" Language="C#" MasterPageFile="~/One-Column.master" AutoEventWireup="true"
    CodeBehind="ChiTiet.aspx.cs" Inherits="BookStore.ChiTiet" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<title>Thông tin sách</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BreadcrumbsContent" runat="server">
    <div class="breadcrumbs">
        <ul>
            <li class="home"><a href="./Default.aspx" title="Go to Home Page">Home</a> <span>&#187;</span>
            </li>
            <li class="category3"><a href="./Sach.aspx" title="">Men&#39;s</a> <span>&#187;</span>
            </li>
            <li class="product"><strong>Tuxedo Blazer</strong> </li>
        </ul>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainColumnContent" runat="server">
    <div id="messages_product_view">
    </div>
    <div class="product-view">
        <div class="product-essential">
            <form action="GioHang.aspx" method="post" id="product_addtocart_form">
            <div class="no-display">
                <input type="hidden" name="product" value="5" />
                <input type="hidden" name="related_product" id="related-products-field" value="" />
            </div>
            <asp:FormView ID="FormView1" runat="server" DataKeyNames="MaSach" DataSourceID="BookDetailDS">
        <ItemTemplate>
            <div class="product-view">
                <div class="product-essential">
                    <form action="GioHang.aspx" method="post" id="product_addtocart_form">
                    <div class="no-display">
                        <input type="hidden" name="product" value="5" />
                        <input type="hidden" name="related_product" id="related-products-field" value="" />
                    </div>
                    <div class="product-shop">
                        <div class="product-name">
                            <h1>
                                <%# Eval("TenSach") %>
                            </h1>
                        </div>
                        <div class="price-box">
                            <span class="regular-price" id="product-price-5"><span class="price">$<%# Eval("Gia") %></span></span></div>
                        <div class="ratings">
                            <div class="rating-box">
                                <div class="rating" style="width: 100%">
                                </div>
                            </div>
                            <p class="rating-links">
                                <a href="#customer-reviews">1 Review(s)</a> <span class="separator">|</span> <a href="#review-form">
                                    Add Your Review</a>
                            </p>
                        </div>
                        
                        <div class="tabs-and-content">
                            <div class="tabs">
                                <ul>
                                    <li><a href="#description">Description</a> </li>
                                </ul>
                            </div>
                            <div class="content">
                                <div id="description">
                                    <%# Eval("MoTa") %><br />
                                    <br />
                                    <strong>Chi Tiết:</strong><br />
                                    Kích thước: <%# Eval("ChieuCao") %>mm x <%# Eval("ChieuRong") %>mm x <%# Eval("BeDay") %>mm.<br />
                                    Khối lượng: <%# Eval("KhoiLuong") %>g
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="product-img-box">
                        <p class="product-image">
                            <a href="<%# Eval("ImageURL") %>" class="fancybox" title="<%# Eval("TenSach") %>">
                                <img src="<%# Eval("ImageURL") %>" alt="<%# Eval("TenSach") %>" /></a>
                        </p>
                        <p class="zoom-notice" id="track_hint">
                            Click on above image to view full picture
                        </p>
                    </div>
            </div>
        </ItemTemplate>
            </asp:FormView>
            <div class="product-view-side right">
                <div class="product-options-bottom">
                    <div class="add-to-cart">
                        <label id="label1" for="qty">
                            Số lượng :</label>
                        <asp:TextBox ID="TextBox1" title="Qty" class="input-text qty" runat="server"></asp:TextBox>
                    </div>
                    <div class="add-to-cart">
                        <asp:Button ID="Button1" runat="server" Text="Add to Cart" OnClick="Button1_Click" />
                    </div>
                </div>
            </div>
            <asp:SqlDataSource ID="BookDetailDS" runat="server" ConnectionString="<%$ ConnectionStrings:BookStoreConnectionString %>"
        
        SelectCommand="SELECT *, LEFT(convert(varchar, cast([DonGia] as money), 1), LEN(convert(varchar, cast([DonGia] as money), 1)) - 3)  as [Gia] FROM [Sach] WHERE ([MaSach] = @MaSach)">
        <SelectParameters>
            <asp:QueryStringParameter Name="MaSach" QueryStringField="bookid"
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
            </form>
            <div class="clearer">
            </div>
        </div>
        <div class="product-collateral">
        </div>
    </div>
</asp:Content>
